package cyc.learn.mode.factory.state;

import cyc.learn.mode.factory.ordinary.EmailSender;
import cyc.learn.mode.factory.ordinary.Sender;
import cyc.learn.mode.factory.ordinary.SmsSender;

/**
 * 静态工厂
 * 相对于多工厂，不需要实例化工厂类
 */
public class SendStaticFactory {

    public static Sender produceEmail() {
        return new EmailSender();
    }

    public static Sender produceSms() {
        return new SmsSender();
    }

}
